package com.zhangh.summer.admin.support.ds.es.base;

public class EsIndexHolder {
    private static final ThreadLocal<String> indexHolder = new ThreadLocal<>();

    public static void setIndex(String index){
        indexHolder.set(index);
    }

    public static String getIndex(){
        return indexHolder.get();
    }
}
